<style>
.app-list-top{
	margin:10px 0;
	width:100%;
	float:left;
}
.app-list-top a{
	padding:6px 20px;
	border-radius:30px;
}
.app-list-content{
	margin-top:20px;
}
.jinyun-app-list {
	padding:0
}
.jylabel-primary {
	border: 1px solid #999;color:#999;
}
.jylabel-primary.active,.jylabel-primary:focus,.jylabel-primary:hover,.jylabel-primary[href]:focus,.jylabel-primary[href]:hover {
	border: 1px solid #18bc9c;
}
</style>
<div ng-if="pagedata.op=='api_shops'">
<ul class="nav nav-tabs">
		<li>
			<a href="javascript:;" ng-click="access_json('/cloud.api_shop/list/')">市场列表</a>
		</li>
		<li class="active">
			<a href="javascript:;" ng-click="access_json('/cloud.api_shop/api_shops/')">云市场</a>
		</li>
</ul>
<div class="alert alert-success alert-dismissable">
		<i class="fa fa-bullhorn alert-link"></i>[<red>温馨提示</red>]：<br>1、点击添加市场，即可一键添加第三方应用市场！<br>2、<red>所有第三方市场，最终责任和解释权都归第三方市场</red>。
</div>
<div class="app-list-top">
	<div class="l" style="padding-right:10px">
		<div class="input-group jinyun-margin-bottom" style="width:366px;margin-bottom:0">
			<input class="form-control" type="text" ng-model="pagedata.params.title" placeholder="请输入关键词" style="width: 330px;">
			<span class="input-group-btn"><button id="submit" ng-click="pagedata.params.page=1;access(pagedata.op,made_query(pagedata.params))" class="btn btn-primary"><i class="fa fa-search"></i></button></span>
		</div>
	</div>
</div>
<div class="app-list-content">
		<div class="jinyun-app-list">
			<ul class="app-list-ul">
			  <li class="app-list-li" style="min-width:260px" ng-repeat="p in pagedata.list">
				<div class="app-li-cont">
				  <div class="app-li-opr">
					<div ng-if="p.is_install ==1" class="jinyun-app-list-down-opr label label-primary">已添加</div>
					<div ng-if="p.is_install !=1" class="jinyun-app-list-down-opr label label-default">未添加</div>
				  </div>
				  <div class="app-li-info" style="height:60px;padding:8px 0 8px 90px;">
						<div class="app-li-iconbg" style="border-radius:3px;height:60px;width:80px;background: url('{{tomedia(p.myshop_logo) || '../core/resource/images/noplugin.jpg'}}') no-repeat 50%;background-size: cover;">
						</div>
						<strong class="app-li-title">{{p.myshop_title}}</strong>
						<div class="app-li-desc">{{p.myshop_desc || '没有描述！'}}</div>
				  </div>
				  <div class="app-opr-box">
					<ul class="opr-list">
					  <li class="opr-item">
						<a ng-if="p.is_install !=1" href="javascript:;" ng-click="post({'api_uniacid':p.uniacid,'myshop_domain':p.myshop_domain},'/cloud.api_shop/api_add/')" class="btn btn-warning item-build-btn">添加市场</a>
						<a ng-if="p.is_install ==1" href="javascript:;" ng-click="access_json(p.api_url)" class="btn btn-warning item-build-btn">去市场</a>
					  </li>
					</ul>
				  </div>
				</div>
			  </li>
			</ul>
			<div class="content-empty" style="margin-top:30px" ng-if="!pagedata.list || pagedata.list.length == 0">
					<p style="color: #999;text-align:left"><i class="fa fa-frown-o" style="font-size: 20px;color: #999;"></i> 暂无任何相关第三方应用市场！</p>
			</div>
		</div>
		<!-- 分页导航 -->
		<div ng-include="sys_html('common/page',true)"></div>
</div>
</div>